home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
machack
/
Hacks97
/
NewsTicker.sit
/
NewsTicker
/
source code
/
InternetConfig
/
ICTypes.p
< prev
next >
Wrap
Text File
|
1997-02-17
|
2KB
|
56 lines
unit ICTypes;
interface
{$ifc undefined THINK_Pascal}
uses
Types;
{$endc}
const
icPrefNotFoundErr = -666; (* preference not found (duh!) *)
icPermErr = -667; (* cannot set preference *)
icPrefDataErr = -668; (* problem with preference data *)
icInternalErr = -669; (* hmm, this is not good *)
icTruncatedErr = -670; (* more data was present than was returned *)
icNoMoreWritersErr = -671; (* you cannot begin a write session because someone else is already doing it *)
icNothingToOverrideErr = -672; (* no component for the override component to capture *)
icNoURLErr = -673; (* no URL found *)
icConfigNotFoundErr = -674; (* no configuration was found *)
icConfigInappropriateErr = -675; (* incorrect manufacturer code *)
const
ICattr_no_change = -1; (* supply this to ICSetPref to tell it not to change the attributes *)
ICattr_locked_bit = 0; (* bits in the preference attributes *)
ICattr_locked_mask = $00000001; (* masks for the above *)
ICattr_volatile_bit = 1;
ICattr_volatile_mask = $00000002;
icNoUserInteraction_bit = 0;
icNoUserInteraction_mask = $00000001;
ICfiletype = 'ICAp';
ICcreator = 'ICAp';
ICdefault_file_name = 'Internet Preferences'; (* default file name, for internal use, overridden by a component resource *)
type
ICDirSpec = record (* a record that specifies a folder *)
vRefNum: integer;
dirID: longint;
end;
ICDirSpecArray = array[0..3] of ICDirSpec; (* an array of the above *)
ICDirSpecArrayPtr = ^ICDirSpecArray; (* a pointer to that array *)
ICAttr = longint; (* type for preference attributes *)
ICError = longint; (* type for error codes *)
ICInstance = Ptr; (* opaque type for preference reference *)
ICPerm = (icNoPerm, icReadOnlyPerm, icReadWritePerm);
ICConfigRef = record
manufacturer: OSType;
(* other private data follows *)
end;
ICConfigRefPtr = ^ICConfigRef;
ICConfigRefHandle = ^ICConfigRefPtr;
implementation
end. (* ICTypes *)